<!DOCTYPE html>
<!-- saved from url=(0032)http://udh.yonyouup.com:90/login -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
	.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}
</style>
<style type="text/css">@charset "UTF-8";[ng\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\:form{display:block;}
</style>
    <title>灵云智能语音庭审系统 - 登录</title>
    
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
    <!--如果是国产双核浏览器,则启用极速模式渲染(目前(15年7月)仅支持360产品)-->
    <meta name="renderer" content="webkit">
    <!--本站不自适应-->
<link rel="stylesheet"  type="text/css" href="@{'/public/stylesheets/login/upBaseCombine.css'}"/>
<link rel="stylesheet"  type="text/css" href="@{'/public/stylesheets/login/login_main.css'}"/>
<link rel="stylesheet"  type="text/css" href="@{'/public/stylesheets/login/login.css'}"/>
</head>
<body ng-app="upApp">

    <input type="hidden" id="hidServeError" value="false">
    <div class="topicfixed">
        <div class="toppic">
            <div class="topside">
            <!--  <a href="/" class="logoLink"></a>	-->	
            	<div class="topNav01" style="margin-top:10px">
           	 		<img style="height:60px;width:60px;padding-bottom:15px;margin-right:10px" src="@{'/public/stylesheets/login/dailogo.png'}"><span style="padding-bottom:15px;color:#0F3675;">| &nbsp;&nbsp;欢迎登录</span>
           	 	</div>
            <!--  
                <a href="http://udh.yonyouup.com:90/" class="logoLink"></a>
                <div class="topNav01">
                    欢迎登录
                </div>
                -->
            </div>
            <div class="topTool">
                <span style="color:red;">灵云智能语音庭审系统</span>
                <!--  
                <span style="color:#0F3675;font-size:10px">--提升全民健康意识，连接一切健康所需</span>
            	-->
            </div>
        </div>
    </div>
    <div class="login-body">
        <div class="content-center">
            <div class="login-left">
            <div class="login-bg animate"><img style="vertical-align:middle;margin-top:20px;margin-left:60px;width:450px;height:400px;" src="@{'/public/stylesheets/login/computer1.png'}"></div>
            <!--  
            	<div class="login-bg animate">
                    <div class="login-icon-01"></div>
                    <div class="login-icon-02"></div>
                    <div class="login-txt"></div>
                </div>
                -->
            </div>
            <div class="login-right ng-scope" ng-controller="loginCtl">
                <div class="login-right-box" ng-class="{&#39;shortlogin&#39;:isError}">
                    <div class="login-box-img">
                        <span class="defaultLogin"></span>
                    </div>
                   	<div style="text-align:center;height:5px"><span class="errMsg" id="errMsg"></span></div>
                    <p>
                        <label class="user"></label>
                        <input type="text" name="username" id="username" placeholder="请输入账户">
                    </p>
                    
                    <p>
                        <label class="password"></label>
                        <input type="password" name="password" id="password" placeholder="请输入密码" autocomplete="off">
                    </p>
                   <!--  <p>
                        <span class="right-verify">
                        	<input type="hidden" name="codeId" value="${codeId}"/>
                            <img id="imgVerify" title="点击刷新图片" src="/admin/captcha.png?codeId=${codeId}" onclick="change()">
                        </span>
                        <label class="verify"></label>
                        <input type="text" placeholder="验证码" name="verifyCode" id="cVerify">
                    </p> -->
                    <button type="button" class="login-btn" id="SubButton"  style="outline:none !important;margin-top:40px">登录</button>
                </div>
            </div>
        </div>
    </div>
    <div class="content-foot">
        <p>Copyright ©. All Rights Reserved.  </p>
    </div>
    <div id="authenticityToken">#{authenticityToken /}</div>
</body>
<script type="text/javascript" src="@{'/public/javascripts/layout/jquery-1.8.2.js'}"></script>
<script type="text/javascript" src="@{'/public/javascripts/layout/jquery.cookie.js'}"></script>
<script type="text/javascript">
$(function(){
	 if (window.top!=null && window.top.document.URL!=document.URL){ 
		 window.top.location= document.URL; 
	 } 
})
//	function change(){
//		var code = $("#imgVerify");
//		code.attr('src', '/admin/captcha.png?codeId=${codeId}&'+Math.random());
//	}
	
	$("#SubButton").click(function(){
		if(!validate()){
			return;
		}
		var data={
				operatorid:$("#username").val(),
				password:$("#password").val(),
//				verifyCode:$("#cVerify").val(),
				codeId:'${codeId}',
				authenticityToken:$("input[name='authenticityToken']").val()
		}
		$("#SubButton").attr("disable",false);
		$.post('@{BaseController.dologin()}',data,function(data){
			if(data.code==200){
				$("#SubButton").attr("disable",true);
				$.cookie('username', data.msg, {expires:30});
				window.location.href="@{IndexController.index()}";
			}else{
				$("#SubButton").attr("disable",true);
				$('#errMsg').text(data.msg);
			}
		})
	})
	function validate(){
		var username=$("#username").val();
		var password=$("#password").val();
		var verifyCode=$("#cVerify").val();
		if(username==''||username==undefined||username=='undefined'){
			$("#errMsg").text("用户名不能为空")
			return false;
		}
		if(password==''||password==undefined||password=='undefined'){
			$("#errMsg").text("密码不能为空")
			return false;
		}
//		if(verifyCode==''||verifyCode==undefined||verifyCode=='undefined'){
//			$("#errMsg").text("验证码不能为空")
//			return false;
//		}
		return true;
	}
	//绑定回车事件
	$(document).keydown(function(event){ 
		if(event.keyCode==13){ 
			$("#SubButton").click(); 
		}
	})
</script>
</html>